package com.qianli.user.application;

import com.qianli.user.domain.enums.UserModelItemStatusEnum;

/**
 * name:公共application
 * auth:ting.li@qianli-inc.com
 * date:2018/1/3 10:32
 * version: v1.0.0
 **/
public class UserAbstractApplication {


    public Integer compare(Object o1,Object o2){

        if(null == o2){
            return UserModelItemStatusEnum.DEFAULT.getType();
        }
        if(null == o1){
            return UserModelItemStatusEnum.ADD.getType();
        }
        return UserModelItemStatusEnum.UPDATE.getType();

    }
}
